<template>
  <header>
    <div>
      <el-button
        icon="el-icon-s-fold"
        size="mini"
        class="fl mr20"
        @click="closeMeum"
      ></el-button>
      <HeadBrad class="fl"></HeadBrad>
    </div>
    <div class="mr20">
      <el-dropdown trigger="click" size="medium" placement="bottom">
        <span class="el-dropdown-link">
          <el-avatar :src="userImage"></el-avatar>
        </span>
        <el-dropdown-menu slot="dropdown">
          <el-dropdown-item>个人中心</el-dropdown-item>
          <el-dropdown-item>退出登录</el-dropdown-item>
        </el-dropdown-menu>
      </el-dropdown>
    </div>
  </header>
</template>

<script>
import HeadBrad from '@/components/HeadBrad'
export default {
  components: {
    HeadBrad,
  },
  methods: {
    closeMeum() {
      this.$store.commit('asideMeum/collese')
    },
  },
  data() {
    return {
      userImage: require('../../assets/image/userImage.jpg'),
    }
  },
}
</script>

<style lang="scss" scoped>
header {
  width: 100%;
  padding: 0;
  background: cornflowerblue;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  :first-child {
    display: flex;
    align-items: center;
  }
}
/deep/ .el-breadcrumb__inner.is-link {
  font-weight: normal;
}
/deep/ .el-breadcrumb__item:last-child .el-breadcrumb__inner,
.el-breadcrumb__item:last-child .el-breadcrumb__inner a,
.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover,
.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover {
  font-weight: normal;
  color: red;
}
</style>
